#include "databaseProvider.h"
#include <QDebug>
////DataBaseProvider * DataBaseProvider::dataBaseProvider = NULL;
////DataBaseProvider * DataBaseProvider::getInstance()
////{
////    if(NULL==dataBaseProvider)
////    {
////        dataBaseProvider = new DataBaseProvider;

////    }
////    return dataBaseProvider;
////}
DataBaseProvider::DataBaseProvider( QObject* parent )
    : QObject( parent )

{
//    connect( m_timer, SIGNAL( timeout() ), this, SIGNAL( out() ) );
//    //connect( m_timer, SIGNAL(  ), this, SIGNAL( out() ) );

}
void DataBaseProvider::setQue(QString a){
    re=a;
}
QString DataBaseProvider::que(){
    return re;
}

void DataBaseProvider::setInterval( int msec )
{
//    if ( m_timer->interval() == msec )
//        return;
//    m_timer->stop();
//    m_timer->setInterval( msec );
//    m_timer->start();
    emit intervalChanged(); //signal
    qDebug() << Q_FUNC_INFO << "interval =" ;
}
int DataBaseProvider::interval()
{
//    return m_timer->interval();
}
void DataBaseProvider::aa(int a)
{
    qDebug() << "asdsad";

}


